Repository navigation
feat(web): hover the pace line on usage bars to see how much of the window has passed - #1052
Merged
Merged
Conversation
…indow has passed
The pace line on usage bars was a 2px tick you couldn't hover, and the
provider Usage tab in Settings didn't draw it at all.
The shared usage presentation now carries a `paceDetail` ("55% of the week
has passed") next to `elapsedPercent`. UsagePaceMark wraps the tick in a
wider hover area with a tooltip showing that text, and the bar's accessible
name uses the same words. The Settings Usage tab bars now draw the pace mark
too. The app guide's usage topic mentions both.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pace line on usage bars was a 2px tick you couldn't hover, so nothing said what it measured. The provider Usage tab in Settings didn't draw it at all.
Hovering the tick now shows a small tooltip, like "55% of the week has passed" with "Usage left of this line lasts until the reset" under it. It works on all three places the bars appear: the usage popup by the send button, the Usage page, and the Usage tab in Settings › Providers, which now draws the tick too.
providerUsage.ts) carries apaceDetailnext toelapsedPercent, naming the right span ("the week", "the day", "the 5-hour window"). The Usage page meters copy it through.UsagePaceMarkwraps the tick in a 12px-wide hover area with the tooltip. The bar's accessible name uses the same words.ProviderUsageDashboard) draws the pace mark and no longer clips it.Checks:
vp fmt,vp lint,vp run typecheck; unit tests forproviderUsageandusageView; browser tests forUsageViewandContextWindowMeter(the latter now hovers the tick and checks the tooltip); server guide tests. Screenshots of the Settings bars with the tooltip open were checked in light and dark.